{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 量化监控
    <span class="c-gray en">&gt;</span> 订单监控
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="/quantization/order" title="清空刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
    <!--<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px;margin-right: 10px"  href="/money/tansfer" title="清空" >清空</a>-->
</nav>
<div class="page-container">
    <form  method="get" action="">
        <div class="text-c" style="margin-top: 10px">
            <input type="text" class="input-text" style="width:200px" placeholder="用户标签" value="{:input('mark')}" name="mark">
            <span class="select-box" style="width: 120px">
                <select name="status" class="select">
                    <option value="">订单状态</option>
                    <option value="1" {if isset($_GET['status']) && $_GET['status'] == '1'}selected{/if}>未生效</option>
                    <option value="2" {if isset($_GET['status']) && $_GET['status'] == '2'}selected{/if}>已生效</option>
                    <option value="3" {if isset($_GET['status']) && $_GET['status'] == '3'}selected{/if}>撤单中</option>
                </select>
            </span>
            <button type="submit" class="btn btn-success">搜索</button>

        </div>
    </form>

    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="l">
            未触发手数(空)：<span style="color: red">{$data['weichufa_down']}</span> 未触发手数(多)：<span style="color: red">{$data['weichufa_up']}</span><br>
              持仓手数(空)：<span style="color: red">{$data['cicang_down']}</span> 持仓手数(多)：<span style="color: red">{$data['cicang_up']}</span>
        </span>
        <span class="r">共有数据：<strong>{$list->total()}</strong> 条</span> </div>
    <table class="table table-border table-bordered table-hover table-bg">
        <thead>
            <tr>
                <th scope="col" colspan="10">账户列表</th>
            </tr>
            <tr class="text-c">
                <th width="100">订单编号</th>
                <th width="80">用户</th>
                <th width="80">用户标签</th>
                <th width="100">订单价格</th>
                <th width="100">时间</th>
                <th width="80">订单类型</th>
                <th width="80">挂单类型</th>
                <th width="100">止盈止损价</th>
                <th width="70">状态</th>
            </tr>
        </thead>
        <tbody>
            {foreach $list as $v}
            <tr class="text-c">
                <td>{$v.sn}</td>
                <td>{$v.username}</td>
                <td>{$v.umark}</td>
                <td>挂单：{$v.price}<br>成交：{$v.trans_price}</td>
                <td>挂单：{:date('Y-m-d H:i:s',$v['create_time'])}<br> 成交：{:date('Y-m-d H:i:s',$v['trans_time'])} <br> 撤单：{:date('Y-m-d H:i:s',$v['cancle_time'])}</td>
                <td>{if $v.type == 1}
                    做多
                    {else/}
                    做空
                    {/if}</td>
                <td> {switch name="$v.transfer_type"}
                    {case value="1"}限价成交{/case}
                    {case value="2"}市价成交{/case}
                    {default /}未成交
                    {/switch}</td>
                <td>{$v.min_price}-{$v.max_price}</td>
                <td>{switch name="$v.status"}
                    {case value="1"}未生效{/case}
                    {case value="2"}已生效{/case}
                    {case value="6"}已生效(部分成交){/case}
                    {case value="3"}已完成{/case}
                    {case value="4"}撤单{/case}
                    {case value="5"}撤单中{/case}
                    {case value="7"}未生效(丢失){/case}
                    {default /}default
                    {/switch}</td>
            </tr>
            {/foreach}
        </tbody>
    </table>
    <div class="page">
        {$list->render()|raw}
    </div>
</div>

{include file="public/footer" /}